"""
俄罗斯方块 tetris

@author: tpig
@date: 2020/12/1
"""
from tetris import Tetris
from board import Board
from block import Block
from info_gameover import GameOver
from info_pause import Pause
from info_score import Score
from resource_manager import ResManager

def main():
    game = Tetris()
    res_manager = ResManager()

    board = Board(res_manager)
    game.go_list.append(board)

    block = Block(0, 0)
    block.board = board
    game.go_list.append(block)

    # info
    game_over_info = GameOver()
    game.go_list.append(game_over_info)

    pause_info = Pause()
    game.go_list.append(pause_info)

    score = Score()
    game.go_list.append(score)


    game.run()

if __name__ == '__main__':
    main()